/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * LogViewerMainFrame.java
 *
 * Created on 21 Apr, 2010, 8:27:10 PM
 */

package com.gs.logviewer.mockup;

import java.awt.event.ActionListener;

/**
 *
 * @author sabuj.das
 */
public class LogViewerMainFrame extends javax.swing.JFrame {

    /** Creates new form LogViewerMainFrame */
    public LogViewerMainFrame() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        logViewerDesktopPane = new javax.swing.JDesktopPane();
        logViewerMenuBar = new javax.swing.JMenuBar();
        fileMenu = new javax.swing.JMenu();
        openLogFileMenuItem = new javax.swing.JMenuItem();
        loadLog4jMenuItem = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        saveMenuItem = new javax.swing.JMenuItem();
        saveAsMenuItem = new javax.swing.JMenuItem();
        saveAllMenuItem = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JPopupMenu.Separator();
        exitMenuItem = new javax.swing.JMenuItem();
        editMenu = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        logViewerDesktopPane.setMinimumSize(new java.awt.Dimension(800, 600));
        logViewerDesktopPane.setName("logViewerDesktopPane"); // NOI18N
        getContentPane().add(logViewerDesktopPane, java.awt.BorderLayout.CENTER);

        logViewerMenuBar.setName("logViewerMenuBar"); // NOI18N

        fileMenu.setText("File");
        fileMenu.setName("fileMenu"); // NOI18N

        openLogFileMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.CTRL_MASK));
        openLogFileMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/folder_open_file.png"))); // NOI18N
        openLogFileMenuItem.setText("Open");
        openLogFileMenuItem.setName("openLogFileMenuItem"); // NOI18N
        fileMenu.add(openLogFileMenuItem);

        loadLog4jMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        loadLog4jMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/project-open.png"))); // NOI18N
        loadLog4jMenuItem.setText("Load Log4j");
        loadLog4jMenuItem.setName("loadLog4jMenuItem"); // NOI18N
        fileMenu.add(loadLog4jMenuItem);

        jSeparator1.setName("jSeparator1"); // NOI18N
        fileMenu.add(jSeparator1);

        saveMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));
        saveMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/save.gif"))); // NOI18N
        saveMenuItem.setText("Save");
        saveMenuItem.setName("saveMenuItem"); // NOI18N
        fileMenu.add(saveMenuItem);

        saveAsMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/saveas_edit.gif"))); // NOI18N
        saveAsMenuItem.setText("Save As...");
        saveAsMenuItem.setName("saveAsMenuItem"); // NOI18N
        fileMenu.add(saveAsMenuItem);

        saveAllMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        saveAllMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/saveall.gif"))); // NOI18N
        saveAllMenuItem.setText("Save All...");
        saveAllMenuItem.setName("saveAllMenuItem"); // NOI18N
        fileMenu.add(saveAllMenuItem);

        jSeparator2.setName("jSeparator2"); // NOI18N
        fileMenu.add(jSeparator2);

        exitMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK));
        exitMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/exit.gif"))); // NOI18N
        exitMenuItem.setText("Exit");
        exitMenuItem.setName("exitMenuItem"); // NOI18N
        fileMenu.add(exitMenuItem);

        logViewerMenuBar.add(fileMenu);

        editMenu.setText("Edit");
        editMenu.setName("editMenu"); // NOI18N
        logViewerMenuBar.add(editMenu);

        setJMenuBar(logViewerMenuBar);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new LogViewerMainFrame().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu editMenu;
    private javax.swing.JMenuItem exitMenuItem;
    private javax.swing.JMenu fileMenu;
    private javax.swing.JPopupMenu.Separator jSeparator1;
    private javax.swing.JPopupMenu.Separator jSeparator2;
    private javax.swing.JMenuItem loadLog4jMenuItem;
    private javax.swing.JDesktopPane logViewerDesktopPane;
    private javax.swing.JMenuBar logViewerMenuBar;
    private javax.swing.JMenuItem openLogFileMenuItem;
    private javax.swing.JMenuItem saveAllMenuItem;
    private javax.swing.JMenuItem saveAsMenuItem;
    private javax.swing.JMenuItem saveMenuItem;
    // End of variables declaration//GEN-END:variables

}
